Bug 541600 – GtkCalendar segfault for certain values of detail-with-chars
authorMathias Hasselmann <hasselmm@src.gnome.org>
Mon, 18 Aug 2008 22:20:19 +0000 (22:20 +0000)
committerMathias Hasselmann <hasselmm@src.gnome.org>
Mon, 18 Aug 2008 22:20:19 +0000 (22:20 +0000)
commit61d32f70fc30533f6c4ceeb5bbb299a567d207e6
treeccfaf9c5d2dae1a039b55b115bb868d168559c6c
parent7df6b76a1a3acbe9744fb77df1d614463f07f0bf
Bug 541600 – GtkCalendar segfault for certain values of detail-with-chars

* gtk/gtkcalendar.c (gtk_calendar_class_init()): Limit the "year"
  property to G_MAXINT >> 9, instead of G_MAXINT >> 8: year_to_days()
  multiplies the year property with 365 and returns the result as
  glong. Therefore ceil(log(365, 2)) = 9 bits must be available,
  not just 8 bits.

svn path=/trunk/; revision=21150
ChangeLog
gtk/gtkcalendar.c